﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Query.PetaPoco;
using Happy.Cms.Query.Tags;

namespace Happy.Cms.Query.PetaPoco.Tags
{
    public sealed class TagQuerySource : QuerySource<TagView>, ITagQuerySource
    {
        public TagQuerySource()
            : base("CmsUnitOfWork", "Tags")
        {
        }

        protected override string[] DefaultOrderClauses
        {
            get
            {
                return new string[] { "([Order])", "Name" };
            }
        }
    }
}
